﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GameManager : MonoBehaviour {
    public BoardManager BoardScript;
    public static GameManager Instance = null;
    private int Level = 20;
	// Use this for initialization
	void Awake () {
        BoardScript = GetComponent<BoardManager>();
        if (Instance == null){
            Instance = this;
        }
        if (Instance != this)
        {
            Destroy(gameObject);
        }
        DontDestroyOnLoad(Instance);
        InitGame();
	}

    void InitGame(){
        BoardScript.SetupSence(Level);
    }
	
	// Update is called once per frame
	void Update () {
		
	}
}
